package com.song.guli.service.trade.fegin;

import com.song.guli.service.base.dto.MemberDto;
import com.song.guli.service.trade.fegin.fallback.EduCourseServiceFallBack;
import com.song.guli.service.trade.fegin.fallback.UcenterMemberServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 宋超
 * HP - the login name of the current user.
 * 2021/5/18 - the current system date.
 * 11:10 - the current system time.
 */
@Service
@FeignClient(value = "service-ucenter", fallback = UcenterMemberServiceFallBack.class)
public interface UcenterMemberService {
    @GetMapping(value = "/api/ucenter/member/inner/get-member-dto/{memberId}")
    MemberDto getMemberDtoByMemberId(@PathVariable(value = "memberId") String memberId);
}
